﻿using System.Web.Mvc;
using Journal.Common.Objects;
using Journal.Common.WebApplication;
using Journal.Front.Presentation.Models.StudyRoomModels;

namespace Journal.Front.Presentation.Controllers
{
    public class MenuController : Controller
    {
        //Action Premission Validate !!!!!!!!
        public ActionResult GetStudyRoomMenu()
        {
            SystemUser loggedUser = BaseApplication.GetLoggedUser();
            StudyRoomMenuModel menu = new StudyRoomMenuModel(loggedUser.Roles);
            return PartialView("../../Views/Shared/UserControls/StudyRoomMenuControl", menu);
        }
    }
}